//
//  TravelManager.h
//  SpaceTrader
//
//  Created by Brandon Chastain on 11/4/12.
//  Copyright (c) 2012 The Hex Pistols. All rights reserved.
//
#pragma once
#include "Planet.h"
#include "Player.h"
#include "Universe.h"
#include <cmath>

/*
 * This class handles all travel events with the player. This includes
 * random encounters as well as subtracting the appropriate amount of
 * fuel from the ship during travel.
 */

class TravelManager{
public:
    TravelManager();
    
    /*
     * Returns the distance travelled to go from Planet A to Planet B.
     * Distances inside systems are the distance on the screen divided by ten.
     * Distances between systems are the distance on the screen, unscaled.
     * Distances between two planets in different systems are calculated as 
     * each planet's respective distance from the top-left corner of the 
     * screen divided by ten plus the distance between the systems.
     */
    int getDistance(Planet *A, Planet *B, Universe *universe);
	void setDistance(int d);
};
